import javax.swing.JButton;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
public class Copy extends JButton implements MouseListener
  {
  private Machine machine;
  public Copy(Machine machine)
    {
    super("Copy");
    this.machine=machine;
    addMouseListener(this);
    }
  public void mousePressed(MouseEvent e)
    {
    machine.copy(false);
    }
  public void mouseReleased(MouseEvent e)
    {
    }
  public void mouseClicked(MouseEvent e)
    {
    }
  public void mouseEntered(MouseEvent e)
    {
    }
  public void mouseExited(MouseEvent e)
    {
    }
  }
